package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_QUARTZ_JOB"
 *     
*/
public class CcpQuartzJob implements Serializable {

    /** identifier field */
    private String cqjGuid;

    /** nullable persistent field */
    private String jobName;

    /** nullable persistent field */
    private String springBean;

    /** nullable persistent field */
    private String methodName;

    /** nullable persistent field */
    private String javaMethod;

    /** nullable persistent field */
    private String jobRemark;

    /** nullable persistent field */
    private String groupGuid;

    /** full constructor */
    public CcpQuartzJob(String cqjGuid, String jobName, String springBean, String methodName, String javaMethod, String jobRemark, String groupGuid) {
        this.cqjGuid = cqjGuid;
        this.jobName = jobName;
        this.springBean = springBean;
        this.methodName = methodName;
        this.javaMethod = javaMethod;
        this.jobRemark = jobRemark;
        this.groupGuid = groupGuid;
    }

    /** default constructor */
    public CcpQuartzJob() {
    }

    /** minimal constructor */
    public CcpQuartzJob(String cqjGuid) {
        this.cqjGuid = cqjGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CQJ_GUID"
     *         
     */
    public String getCqjGuid() {
        return this.cqjGuid;
    }

    public void setCqjGuid(String cqjGuid) {
        this.cqjGuid = cqjGuid;
    }

    /** 
     *            @hibernate.property
     *             column="JOB_NAME"
     *             length="50"
     *         
     */
    public String getJobName() {
        return this.jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    /** 
     *            @hibernate.property
     *             column="SPRING_BEAN"
     *             length="30"
     *         
     */
    public String getSpringBean() {
        return this.springBean;
    }

    public void setSpringBean(String springBean) {
        this.springBean = springBean;
    }

    /** 
     *            @hibernate.property
     *             column="METHOD_NAME"
     *             length="30"
     *         
     */
    public String getMethodName() {
        return this.methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    /** 
     *            @hibernate.property
     *             column="JAVA_METHOD"
     *             length="250"
     *         
     */
    public String getJavaMethod() {
        return this.javaMethod;
    }

    public void setJavaMethod(String javaMethod) {
        this.javaMethod = javaMethod;
    }

    /** 
     *            @hibernate.property
     *             column="JOB_REMARK"
     *             length="250"
     *         
     */
    public String getJobRemark() {
        return this.jobRemark;
    }

    public void setJobRemark(String jobRemark) {
        this.jobRemark = jobRemark;
    }

    /** 
     *            @hibernate.property
     *             column="GROUP_GUID"
     *             length="32"
     *         
     */
    public String getGroupGuid() {
        return this.groupGuid;
    }

    public void setGroupGuid(String groupGuid) {
        this.groupGuid = groupGuid;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cqjGuid", getCqjGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpQuartzJob) ) return false;
        CcpQuartzJob castOther = (CcpQuartzJob) other;
        return new EqualsBuilder()
            .append(this.getCqjGuid(), castOther.getCqjGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCqjGuid())
            .toHashCode();
    }

}
